package vip.xiaonuo.biz.modular.pay.param.req;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import vip.xiaonuo.biz.modular.pay.entity.BizPayAccount;

/**
 * ClassName:BizPayCheckReqParam
 * Description:
 *
 * @Author:薛守立
 * @CreateTime:2024/9/19 17:51
 */

@Data
@JacksonXmlRootElement(localName = "order")
public class BizOrderCheckReq {

    public BizOrderCheckReq(BizPayAccount account, String service) {
        this.service = service;
        this.mch_id = account.getMchId();
        this.sign_type = account.getSignType();
    }

    /** 接口类型(32) **/
    @JacksonXmlProperty(localName = "service")
    String service;

    /** 签名方式(12) **/
    @JacksonXmlProperty(localName = "sign_type")
    String sign_type;

    /** 商户号(32) **/
    @JacksonXmlProperty(localName = "mch_id")
    String mch_id;

    /** 随机字符串(255) **/
    @JacksonXmlProperty(localName = "nonce_str")
    String nonce_str;

    /** 签名(255) **/
    @JacksonXmlProperty(localName = "sign")
    String sign;

    /** 商户订单号(32) **/
    @JacksonXmlProperty(localName = "out_trade_no")
    String out_trade_no;
}
